package com.andaily.domain.dto.account;

import com.andaily.domain.dto.AbstractChartDto;
import com.andaily.infrastructure.mybatis.data.AccountStatisticsData;

import java.util.List;

/**
 * Date: 13-7-31
 *
 * @author Shengzhao Li
 */
public class AccountMonthChartDto extends AbstractChartDto<AccountStatisticsData> {

    public AccountMonthChartDto() {
    }

    //show 18 months
    public int getChartDataSize() {
        return 18;
    }

    public AccountMonthChartDto updateList(List<AccountStatisticsData> dataList) {
        this.list = dataList;
        this.initialStepWidth(dataList);
        return this;
    }
}
